﻿
    using System;
    using System.Collections.Generic;
    using System.Text;

    public partial class MemProj
    {
        public string ContrlType;
        public string ControlID;
        public List<object> Value;

        private string getStringValue()
        {
            StringBuilder strval = new StringBuilder();
            foreach (object o in this.Value)
            {
                strval.AppendFormat("{0}|", o.ToString());
            }
            return strval.ToString().Trim(new char[] { '|' });
        }

        public string InsertSqlcommand(int id)
        {
            return string.Format("INSERT INTO MemIofo(MemID,jian,zhi,shux) values('','','','')) ", new object[] { id, this.ControlID, this.getStringValue(), this.ContrlType });
        }
    }


